﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Echiquier
{
    public class Pion
    {
        #region Attributs
        private static int _staticId;
        private int _id;
        private string _name;
        private Color _color;
        #endregion

        #region Constructeur
        public Pion(string name, Color c)
        {
            _id = _staticId++;
            _color = c;
            _name = name;
        }

        public Pion()
            : this("", Color.White)
        { }
        #endregion

        #region Proprietes
        public int Id
        {
            get{return _id;}
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public Color Color
        {
            get { return _color; }
            set { _color = value; }
        }
        #endregion

        #region Methodes
        #endregion
    }
}
